#  -*- coding: UTF-8 -*-
import KNN


# 功能：
def main2():
    # param:
    # return:
    returnData = []
    data, labels = KNN.file2matrix(r'D:\python\Ch02\datingTestSet.txt')
    normData, ranges, minVector = KNN.autoNorm(data)
    KNN.classify2([0, 0, 0], normData, labels, 4)
    # KNN.showData(normData, labels)
    KNN.datingClassTest(normData, labels, 4)
    return returnData


KNN.handWritingClassTest()
